<template>
	<view class="count">
		<view class="u-font-40 u-p-30 bold">
			请选择跑腿业务
		</view>
		<view class="">
			<view class="back u-p-40" v-for="(value,index) in list" :key="index" @click="transfer(value.type)">
				<u-row>
					<u-col span="4" align="center">
						<view class="u-font-40 u-m-b-40 u-m-t-10">
							{{value.business}}
						</view>
					</u-col>
					<u-col span="8">
						<view class="">
							<view>
								{{value.items}}
							</view>
							<view>
								{{value.vice}}
							</view>
						</view>
					</u-col>
				</u-row>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[{
					business:"帮送",
					items:"文件、礼品、衣服...",
					vice:"全程58分钟送达",
					type:0
				},{
					business:"帮取",
					items:"文件、礼品、衣服...",
					vice:"全程58分钟送达",
					type:0
				},{
					business:"帮买",
					items:"不只是美食，啥都能买",
					vice:"逛遍全城",
					type:0
				},{
					business:"帮排队",
					items:"餐厅、买房、行政排队...",
					vice:"高效 省时 效力快",
					type:2
				},{
					business:"闪帮",
					items:"只要说明你的需要",
					vice:"随叫随到",
					type:1
				}]
			}
		},
		methods:{
			transfer(type){
				if(type>0){
					uni.navigateTo({
						url:'/pages/home_page/submit_orders?type='+type+'&name=""&name1=""&text=""'
					})
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.back{
		background-color: #2a5aa4;
		width: 90%;
		margin: 10rpx auto; 
		color: #FFFFFF;
		border-radius: 20rpx;
	}
	.bold{
		font-weight: bold;
	}
</style>
